package com.pinda.controller;


import com.github.pagehelper.PageInfo;
import com.pinda.base.vo.TruckDriverTheTruckMessageVo;
import com.pinda.commonutils.Page;
import com.pinda.service.IPdTruckDriverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 司机表 前端控制器
 * </p>
 *
 * @author author
 * @since 2023-06-26
 */
@RestController
@RequestMapping("/pd-truck-driver")
public class PdTruckDriverController {


    @Autowired
    IPdTruckDriverService iPdTruckDriverService;


    @RequestMapping("/queryPageTruckDriver")
    public PageInfo queryPageTruckDriver(@RequestBody Page page){
        return this.iPdTruckDriverService.queryPageTruckDriver(page);
    }

    @RequestMapping("/queryTruckDriverTheTruckMessage/{id}")
    public TruckDriverTheTruckMessageVo queryTruckDriverTheTruckMessage(@PathVariable("id")String id){
        return this.iPdTruckDriverService.queryTruckDriverTheTruckMessage(id);
    }

}
